import DIC from '@/const/cust/health/dic'
export const zyzlTableOption = {
  label: '住院治疗情况',
  index: true,
  border: true,
  stripe: true,
  selection: false,
  selectClearBtn: false,
  maxHeight: 400,
  menuWidth: 280,
  menu: true,
  selectClearBtn: false,
  indexLabel: '序号',
  align: 'center',
  column: [
    {
      label: '类型',
      prop: 'zyzlqklx',
      labelWidth: 150,
      type: 'select',
      span: 24,
      dicData: DIC.ZYZLLX
    },
    {
      label: '入/出院/建/撤床日期',
      prop: 'zyzlqkrq',
      labelWidth: 150,
      span: 24,
      type: 'date',
      valueFormat: 'yyyy-MM-dd',
      format: "yyyy-MM-dd",
    },
    {
      label: '原因',
      labelWidth: 150,
      prop: 'zyzlqkyy',
      span: 24,
    },
    {
      label: '医疗机构名称',
      labelWidth: 150,
      prop: 'zyzlqkyljgmc',
      type: 'text',
      span: 24,
    },
    {
      label: '病案号',
      prop: 'zyzlqkbah',
      type: 'text',
      labelWidth: 150,
      span: 24,
    }
  ]
}
export const yyqkTableOption = {
  label: '主要用药情况',
  index: true,
  border: true,
  stripe: true,
  selection: false,
  maxHeight: 400,
  menuWidth: 280,
  menu: true,
  indexLabel: '序号',
  align: 'center',
  column: [
    {
      label: '药物名称',
      prop: 'zyyyqkywmc',
      labelWidth: 150,
      type: 'text',
      span: 24,
    },
    {
      label: '用法',
      prop: 'zyyyqkyf',
      labelWidth: 150,
      span: 24,
      type: 'text',
    },
    {
      label: '用量',
      labelWidth: 150,
      prop: 'zyyyqkyl',
      span: 24,
    },
    {
      label: '用药时间',
      labelWidth: 150,
      prop: 'zyyyqkyysj',
      valueFormat: 'yyyy-MM-dd HH:mm',
      format: "yyyy-MM-dd HH:mm",
      type: 'datetime',
      span: 24,
    },
    {
      label: '服药依从性',
      prop: 'zyyyqkfyycx',
      type: 'select',
      dicData: DIC.FYYCX,
      labelWidth: 150,
      span: 24,
    }
  ]
}
export const jzsTableOption = {
  label: '非免疫规划预防接种史',
  index: true,
  border: true,
  stripe: true,
  selection: false,
  maxHeight: 400,
  menuWidth: 280,
  menu: true,
  indexLabel: '序号',
  align: 'center',
  column: [
    {
      label: '名称',
      prop: 'fmyghyfjzsmc',
      labelWidth: 150,
      type: 'text',
      span: 24,
    },
    {
      label: '接种日期',
      prop: 'fmyghyfjzsrq',
      labelWidth: 150,
      valueFormat: 'yyyy-MM-dd',
      format: "yyyy-MM-dd",
      span: 24,
      type: 'date',
    },
    {
      label: '接种机构',
      labelWidth: 150,
      prop: 'fmyghyfjzsjg',
      span: 24,
    }
  ]
}
export const fromOption = {
  labelWidth: 120,
  column: [
    {
      label: '健康评价',
      prop: 'jkpjnr',
      type: 'select',
      dicData: DIC.JKPJ,
      span: 24,
    },
    {
      label: '异常说明',
      prop: 'jkpjnrDes',
      type: 'text',
      display: false,
      span: 24,
    },
    {
      label: '健康指导',
      prop: 'jkzdnrff',
      type: 'select',
      dicData: DIC.JKZD,
      span: 24,
    },
    {
      label: '危险因素控制',
      prop: 'jkzdwxyskzff',
      type: 'select',
      multiple: true,
      dataType: 'string',
      dicData: DIC.WXYSKZ,
      span: 24,
    }, {
      label: '减体重目标(kg)',
      prop: 'wxyskzjtzmb',
      type: 'text',
      display: false,
      span: 24,
    }, {
      label: '建议接种疫苗',
      prop: 'wxyskzjyjzym',
      type: 'text',
      display: false,
      span: 24,
    }, {
      label: '其他说明',
      prop: 'wxyskzDes',
      type: 'text',
      display: false,
      span: 24,
    },
  ]
}